| Conditions | 2 |
| Total Lines | 8 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import { ISchoolRepository } from 'src/Domain/School/Repository/ISchoolRepository'; |
||
| 22 | |||
| 23 | protected async getSchool(schoolId: string): Promise<School> { |
||
| 24 | const school = await this.schoolRepository.findOneById(schoolId); |
||
| 25 | if (!school) { |
||
| 26 | throw new SchoolNotFoundException(); |
||
| 27 | } |
||
| 28 | |||
| 29 | return school; |
||
| 30 | } |
||
| 32 |